#include "vtkMRMLMyModelDisplayNode.h"

vtkStandardNewMacro(vtkMRMLMyModelDisplayNode);
vtkCxxRevisionMacro(vtkMRMLMyModelDisplayNode, "$Revision: 1.0 $");

vtkMRMLMyModelDisplayNode::vtkMRMLMyModelDisplayNode(void)
{
	PolyData = NULL;
	OutputPolyData = NULL;
}

vtkMRMLMyModelDisplayNode::~vtkMRMLMyModelDisplayNode(void)
{
	SetPolyData(NULL);
	SetOutputPolyData(NULL);
}
void vtkMRMLMyModelDisplayNode::BuildPipleline()
{
	SetOutputPolyData(PolyData);
}
vtkPolyData * vtkMRMLMyModelDisplayNode::GetPolyData()
{
	BuildPipleline();
	return OutputPolyData;
}
vtkMRMLNode * vtkMRMLMyModelDisplayNode::CreateNodeInstance()
{
	// First try to create the object from the vtkObjectFactory
	vtkObject* ret = vtkObjectFactory::CreateInstance("vtkMRMLMyModelNode");
	if(ret)
	{
		return (vtkMRMLMyModelDisplayNode*)ret;
	}
	// If the factory was unable to create the object, then create it here.
	return new vtkMRMLMyModelDisplayNode;
}
